package com.example.stock.util;

import com.example.stock.entity.User;
import lombok.Getter;
import lombok.Setter;

public class LoginUtil {

    @Getter
    @Setter
    static User loginUser;

    public static void clearLoginUser() {
        loginUser = null;
    }

    public static boolean isLogin() {
        return loginUser != null;
    }
}